<?php
namespace Portal\Controller;
use Common\Controller\HomebaseController; 
/**
 * 首页
 */
class IndexController extends HomebaseController {

    public function __construct() {
        parent::__construct();
        $src = $this->getPhoto();
        //var_dump($src);
        $this -> assign("src",$src["photo"]);

    }

    //首页
	public function index() {
        $this->assign("nav",1);
    	$this->display(":index");
    }
    //热门
    public function hot() {
        $this->assign("nav",2);
        $this->display(":hot");
    }
    //资讯
    public function info() {
        $this->assign("nav",3);
        $this->display(":info");
    }
    //科技
    public function tech() {
        $this->assign("nav",4);
        $this->display(":tech");
    }
    //生活
    public function life() {
        $this->assign("nav",5);
        $this->display(":life");
    }
    //基金
    public function fund() {
        $this->assign("nav",6);
        $this->display(":fund");
    }
    //联系我们
    public function tel() {
        $this->assign("nav",7);
        $this->display(":tel");
    }

}


